//
//  ClubListCell.swift
//  yuejian
//
//  Created by gyy on 2017/10/27.
//  Copyright © 2017年 gyy. All rights reserved.
//

import UIKit

protocol clubListDelegate {
    
}
class ClubListCell: UITableViewCell {
    
    var clubDelegate:clubListDelegate!
    // var infoDict:NSDictionary!
    var ClubPhoto:UIImageView!
    var club_name:UILabel!
    var indexPath:IndexPath!
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setView()
    }
    
    func setView(){
        ClubPhoto = UIImageView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 200))
        self.addSubview(ClubPhoto)
        
        club_name = UILabel(frame: CGRect(x: 135, y: 105, width: 375, height: 40))
        club_name.font = UIFont.systemFont(ofSize: 20)
        self.addSubview(club_name)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func layoutSubviews() {
        textLabel?.frame = CGRect(x: 10, y: 5, width: 120, height: 40)
        textLabel?.font = UIFont.systemFont(ofSize: 20)
    }
    
}


